package edu.sctu.practice.class02.xuejiahua.test13;

/**
 * Created by Administrator on 2015/10/11.
 */
public class Function {
    public int a,b;

    public double e,f,g;

    public String str1,str2;


    public Function(int a, int b,double e, double f,double g,String str1,String str2) {
        this.a = a;
        this.b = b;
        this.e = e;
        this.f = f;
        this.g = g;
        this.str1 = str1;
        this.str2 = str2;
    }

    public void compare(){
        if(a!=b){
            if(a>b){
                System.out.println(a);
            }else {
                System.out.println(b);
            }

        }else{
            System.out.println(a);

        }

    }


    public void getAnswer(){
         double h;
        System.out.println(h=e*f*g);


    }


    public boolean check(){
      if(str1.equals(str2)){
          return true;

      }else{
          return false;

      }


    }


}
